package org.pro.bookkeeping.core.service.impl;

import org.pro.bookkeeping.core.service.AccountService;
import org.pro.bookkeeping.core.service.LoggerService;
import org.pro.bookkeeping.core.service.PublicBookkeepingService;
import org.pro.bookkeeping.core.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PublicBookkeepingServiceImpl implements PublicBookkeepingService {

	@Autowired
	private UserService userService;
	@Autowired
	private AccountService accountService;
	@Autowired
	private LoggerService loggerService;

	public String regist(String LoginName, String Password, String UserName, String Mobilephone) {
		return userService.regist(LoginName, Password, UserName, Mobilephone);
	}

	public String login(String LoginName, String Password) {
		return userService.login(LoginName, Password);
	}

	public String addLogging(String UserID, String Time, String MoneyValue, String Type, String Note, String TypeID) {
		return loggerService.addLogger(UserID, Time, MoneyValue, Type, Note, TypeID);
	}

	public String delLogger(String LogID) {
		return loggerService.delLogger(LogID);
	}

	public String findLoggerOneByLogID(String LogID) {
		return loggerService.findLoggerOneByLogID(LogID);
	}

	public String findAccountByUserID(String UserID) {
		return accountService.findAccountByUserID(UserID);
	}

	public String findLoggerListByUserID(String UserID, String page, String row) {
		return loggerService.findLoggerListByUserID(UserID, page, row);
	}

	public String updateLoggerOne(String UserID, String Time, String MoneyValue, String Type, String Note, String TypeID, String LogID) {

		return loggerService.updateLoggerOne(UserID, Time, MoneyValue, Type, Note, TypeID, LogID);
	}

	public String cancelLogger(String LogID) {
		return loggerService.cancelLogger(LogID);
	}

}
